package com.lala.rennigou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lala.rennigou.pojo.EasybuyProduct;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EasybuyProductMapper extends BaseMapper<EasybuyProduct> {
    List<EasybuyProduct> seleceByCategoryLevel3Id(int categoryLevel3Id);

    int modifyStock (@Param("id") String id ,@Param("stock") int stock);

    List<EasybuyProduct> selectAll();

    int updataIsdelete(int id);

    int insertSP(EasybuyProduct easybuyProduct);

}
